﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;
using System.Web.Http.ModelBinding;

namespace SaleWebsite.library
{
    public class CheckPhone
    {
        public static bool Validate(string value)
        {
            if (!Regex.Match(value, @"^[1-9]\d{2}-[1-9]\d{2}-\d{4}$").Success)
            {
                
                return false;
            }
            return true;
            
        }
    }
}